package com.itheima.outputstream;

import java.io.FileOutputStream;
import java.io.IOException;

/*
文件字节输出流 写数据
 */
public class Demo01 {

    public static void main(String[] args) throws IOException {
        //创建输出流对象
       // FileOutputStream fos = new FileOutputStream(new File("day12\\abc.txt"));
        FileOutputStream fos = new FileOutputStream("day12\\abc.txt",true);
        //调用方法 写
        fos.write(97);
        fos.write(98);
        fos.write(99);
        fos.write(100);

        //释放资源
        fos.close();
    }

}
